<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>玩家管理</title>
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link href="../css/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="../css/index.css" type="text/css">
    <script src="../js/lib/jquery.min.js?v=20170408"></script>
    <script src="../js/lib/jquery.cookie.js?v=20170408"></script>
    <script src="../js/lib/jsrender.js?v=20170408"></script>
    <script src="../js/lib/bootstrap.min.js?v=20170408"></script>
    <script src="../js/lib/bootstrap-table.min.js?v=20170408"></script>
    <script src="../js/lib/bootstrap-table-zh-CN.min.js?v=20170408"></script>
    <script src="../js/lib/vue.min.js?v=20170408"></script>
    <script src="../js/common.js?v=20170408"></script>
    <script src="../js/main.js?v=20170408"></script>
    <style>
        .box-title {
            font-size: 24px;
            color: #444;
            display: block;
            padding: 10px;
            text-align: center;
            border: 1px solid #ddd;
        }
    </style>
</head>
<body>
<div class="container-fluid">
    <div class="productMain">
        <div class="panel panel-default">
            <div class="panel-body">
                <form class="form-horizontal" role="form">
                        <label class="col-md-1 control-label">剩余房卡</label>
                        <div class="col-md-2">
                            <label class="col-md-1 control-label" id="actualCard">0</label>
                        </div>
                        <label class="col-md-1 control-label">购买房卡总数</label>
                        <div class="col-md-4">
                            <label class="col-md-1 control-label" id="buynum">0</label>
                        </div>
                        <label class="col-md-1 control-label">卖出房卡总数</label>
                        <div class="col-md-4">
                            <label class="col-md-1 control-label" id="sellnum">0</label>
                        </div>
                    </form>

                        <!--<label class="col-md-2 control-label">三方SKU</label>-->
                        <!--<div class="col-md-2">-->
                        <!--<input type="text" class="form-control" id="selSku" placeholder="">-->
                        <!--</div>-->
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $.ajax({//编辑cookie
            url:majiangurl+"/recharge/totalCard",
            type:"post",
            xhrFields: {
                withCredentials: true
            },
            crossDomain: true,
            dataType: "json",
            success: function (res) {
                if(res.status=="200"){
                    $("#actualCard").text(res.result.actualCard);
                    $("#buynum").text(res.result.buynum);
                    $("#sellnum").text(res.result.sellnum);

                }else {
                    common.lightBox.showMessage('查询汇总失败');
                }
            }
        });
    });
</script>
</body>
</html>